/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.TaiKhoanBLL;
import edu.nii.qlks.DataTransferObject.TaiKhoanInfo;
import java.util.Vector;

/**
 *
 * @author MARS_NHO
 */
public class TaiKhoanControl {
    TaiKhoanBLL TaiKhoan = new TaiKhoanBLL();
    
    public Vector LayDS() throws Exception{
        return TaiKhoan.LayDS();
    }
    
    public void Insert(TaiKhoanInfo taiKhoanInfo) throws Exception{
        TaiKhoan.Insert(taiKhoanInfo);
    }
    
    public void Update(TaiKhoanInfo taiKhoanInfo) throws Exception{
        TaiKhoan.Update(taiKhoanInfo);
    }
    
    public void Delete(TaiKhoanInfo taiKhoanInfo) throws Exception{
        TaiKhoan.Delete(taiKhoanInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
        return  TaiKhoan.TaoMaTuDong(maGoc, batDau);
    }
    
    public Vector LayTT(String TenTaiKhoan, String MatKhau) throws Exception{
        return TaiKhoan.LayTT(TenTaiKhoan, MatKhau);
    }
    
    public Vector Lay_MaTaiKhoan(String TenTaiKhoan) throws Exception{
        return  TaiKhoan.Lay_MaTaiKhoan(TenTaiKhoan);
    }
    
    public Vector Lay_MaLoaiTaiKhoan(String TenTaiKhoan) throws Exception{
        return  TaiKhoan.Lay_MaLoaiTaiKhoan(TenTaiKhoan);
    }
    public Vector LayDS_TenLoaiTaiKhoan() throws Exception{
        return TaiKhoan.LayDS_TenLoaiTaiKhoan();
    }
}
